Don't use flock on NFS mounts
authorAlex Crichton <alex@alexcrichton.com>
Tue, 26 Apr 2016 22:58:49 +0000 (15:58 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 26 Apr 2016 22:58:49 +0000 (15:58 -0700)
commitb0ecb90c32fdaeaf582b2c927866ebc5451b5dd7
tree277339effec98fd12bdfd485bc9b9eec3d0fed6d
parent191f65f5fad61b64e715ccdebd94b7ada6db007d
Don't use flock on NFS mounts

Completely skip file locking when we detect an NFS mount via `statfs`.

Closes #2615
src/cargo/util/flock.rs